//
//  RootListBaseViewController.m
//  liang ping
//
//  Created by lanou on 16/3/10.
//  Copyright © 2016年 孙金龙. All rights reserved.
//

#import "RootListBaseViewController.h"

@interface RootListBaseViewController ()

@end

@implementation RootListBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 20, KWidth, 50)];
    view.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.view addSubview:view];
    self.changeButton = [UIButton buttonWithType:UIButtonTypeSystem];
    self.changeButton.frame = CGRectMake(10, 10, 30, 30);
    [self.changeButton setTitle:@"三" forState:UIControlStateNormal];
    [self.changeButton addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
    //[view addSubview:self.changeButton];
    
    UIView *lineView1 = [[UIView alloc] initWithFrame:CGRectMake(50, 0, 1, 50)];
    lineView1.backgroundColor = [UIColor lightGrayColor];
    [view addSubview:lineView1];
    
    UIView *lineView2 = [[UIView alloc] initWithFrame:CGRectMake(0, 50, KWidth, 1)];
    lineView2.backgroundColor = [UIColor lightGrayColor];
    [view addSubview:lineView2];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(60, 0, 50, 50)];
    self.titleLabel.text = @"阅读";
    [view addSubview:self.titleLabel];
    
}






// 轻扫
- (void)swipeAction:(UISwipeGestureRecognizer *)swipe
{
  
}


// 平移事件
- (void)panAction:(UIPanGestureRecognizer *)pan
{
    
}

// 点击事件
- (void)buttonAction:(UIButton *)button
{
    for (int i = 1; i <self.view.subviews.count; i++)
    {
         //UIView *view = self.view.subviews[i];
        //view.userInteractionEnabled = !view.userInteractionEnabled;
    }
   
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
